import java.util.Arrays;
-
public class Account implements Serializable {
/**
private boolean admin = false;
- public Account(String usr){
-
-
- }
- public Account(String usr, String pass, boolean isAdmin) {
-
- }
-
- public Account(String usr, String pass, Owner ow) {
-
-
- }
+
public byte[] getUsername() {
return username;
}
return admin;
}
+
public void setAdmin(boolean admin) {
this.admin = admin;
}
if (getClass() != obj.getClass())
return false;
Account other = (Account) obj;
- if (!Arrays.equals(password, other.password))
- return false;
if (!Arrays.equals(username, other.username))
return false;
return true;